﻿



using System; 
using System.Collections;
using System.Collections.Generic ;
using System.Runtime.Serialization;

namespace ufida.u9.ait.openapi
{
	/// <summary>
	/// 物料清单头DTO DTO :REST自定义的数据传输类型 
	/// 
	/// </summary>
	[DataContract(Namespace = "ufida.u9.ait.openapi")]
	[Serializable]
	public partial class BOMMasterAITDTOData  
	{
		/// <summary>
		/// Default Constructor
		/// </summary>
		public BOMMasterAITDTOData()
		{
			initData();
		}
		private void initData()
		{
		
		
		
		
		
		
		
		
		
		
					AlternateType= -1; 
		
			//调用默认值初始化服务进行配置方式初始化
			UFSoft.UBF.Service.DTOService.InitConfigDefault(this);
		}
		[System.Runtime.Serialization.OnDeserializing]
		internal void OnDeserializing(System.Runtime.Serialization.StreamingContext context)
		{
			 initData();
		}
		#region Do SerializeKey -ForDTODataType
		//只为处理集合型EntityKey。原因集合型EntityKey由于使用臫的集合对象，无法实现数据共享.-UBF专用.
		public void DoSerializeKeyList(IDictionary dict)
		{
			if (dict == null ) dict = new Hashtable() ;
			if (dict[this] != null)
				return ;
			dict[this] = this;
	        			if (this.BOMComponents!=null)
			{
				foreach(ufida.u9.ait.openapi.BOMComponentAITDTOData objdata in this.BOMComponents)
				{
					objdata.DoSerializeKeyList(dict);
				}
			}
				        			if (this.ItemMaster != null) 
			{
				this.ItemMaster.DoSerializeKeyList(dict);
			}
	        			if (this.Org != null) 
			{
				this.Org.DoSerializeKeyList(dict);
			}
	        			if (this.ProductUOM != null) 
			{
				this.ProductUOM.DoSerializeKeyList(dict);
			}
	        	        	        	        			if (this.Project != null) 
			{
				this.Project.DoSerializeKeyList(dict);
			}
	        			if (this.DescFlexField != null) 
			{
				this.DescFlexField.DoSerializeKeyList(dict);
			}
	        	        
		}
		#endregion 
		/// <summary>
		/// Constructor Full Argument
		/// </summary>
		public BOMMasterAITDTOData(  List<ufida.u9.ait.openapi.BOMComponentAITDTOData> bOMComponents  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData itemMaster  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData org  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData productUOM  , System.String effectiveDate  , System.String disableDate  , System.String bOMVersionCode  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData project  , ufida.u9.ait.openapi.CopyOfDescFlexSegmentsData descFlexField  , System.String explain  , System.Int32 alternateType  )
		{
			initData();
			this.BOMComponents = bOMComponents;
			this.ItemMaster = itemMaster;
			this.Org = org;
			this.ProductUOM = productUOM;
			this.EffectiveDate = effectiveDate;
			this.DisableDate = disableDate;
			this.BOMVersionCode = bOMVersionCode;
			this.Project = project;
			this.DescFlexField = descFlexField;
			this.Explain = explain;
			this.AlternateType = alternateType;
		}
		#region System Fields 
		//--系统字段,目前没有.EntityData上有相应的字段,用于保存相关的实体状态信息,DTO上没有状态信息.	
		#endregion
		
		#region DTO Properties 
	
		

		/// <summary>
		/// BOM子项集合
		/// 物料清单头DTO.Misc.BOM子项集合
		/// </summary>
		private List<ufida.u9.ait.openapi.BOMComponentAITDTOData> m_bOMComponents ;
		[DataMember(IsRequired=false)]
		public List<ufida.u9.ait.openapi.BOMComponentAITDTOData> BOMComponents
		{
			get	
			{	
				if (m_bOMComponents == null )
				{
					List<ufida.u9.ait.openapi.BOMComponentAITDTOData> n_m_list = new List<ufida.u9.ait.openapi.BOMComponentAITDTOData>() ;
					m_bOMComponents = n_m_list ;
				}
				return m_bOMComponents ;
			}
			set	
			{	
				m_bOMComponents = value ;	
			}
		}
			
		

		/// <summary>
		/// 料品
		/// 物料清单头DTO.Misc.料品
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_itemMaster ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData ItemMaster
		{
			get	
			{	
				return m_itemMaster ;
			}
			set	
			{	
				m_itemMaster = value ;	
			}
		}
			
		

		/// <summary>
		/// 组织
		/// 物料清单头DTO.Misc.组织
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_org ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData Org
		{
			get	
			{	
				return m_org ;
			}
			set	
			{	
				m_org = value ;	
			}
		}
			
		

		/// <summary>
		/// 生产单位
		/// 物料清单头DTO.Misc.生产单位
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_productUOM ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData ProductUOM
		{
			get	
			{	
				return m_productUOM ;
			}
			set	
			{	
				m_productUOM = value ;	
			}
		}
			
		

		/// <summary>
		/// 生效时间
		/// 物料清单头DTO.Misc.生效时间
		/// </summary>
		private System.String m_effectiveDate ;
		[DataMember(IsRequired=false)]
		public System.String EffectiveDate
		{
			get	
			{	
				return m_effectiveDate ;
			}
			set	
			{	
				m_effectiveDate = value ;	
			}
		}
			
		

		/// <summary>
		/// 失效时间
		/// 物料清单头DTO.Misc.失效时间
		/// </summary>
		private System.String m_disableDate ;
		[DataMember(IsRequired=false)]
		public System.String DisableDate
		{
			get	
			{	
				return m_disableDate ;
			}
			set	
			{	
				m_disableDate = value ;	
			}
		}
			
		

		/// <summary>
		/// 版本
		/// 物料清单头DTO.Misc.版本
		/// </summary>
		private System.String m_bOMVersionCode ;
		[DataMember(IsRequired=false)]
		public System.String BOMVersionCode
		{
			get	
			{	
				return m_bOMVersionCode ;
			}
			set	
			{	
				m_bOMVersionCode = value ;	
			}
		}
			
		

		/// <summary>
		/// 项目
		/// 物料清单头DTO.Misc.项目
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_project ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData Project
		{
			get	
			{	
				return m_project ;
			}
			set	
			{	
				m_project = value ;	
			}
		}
			
		

		/// <summary>
		/// 描述性弹性域
		/// 物料清单头DTO.Misc.描述性弹性域
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfDescFlexSegmentsData m_descFlexField ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfDescFlexSegmentsData DescFlexField
		{
			get	
			{	
				return m_descFlexField ;
			}
			set	
			{	
				m_descFlexField = value ;	
			}
		}
			
		

		/// <summary>
		/// 备注
		/// 物料清单头DTO.Misc.备注
		/// </summary>
		private System.String m_explain ;
		[DataMember(IsRequired=false)]
		public System.String Explain
		{
			get	
			{	
				return m_explain ;
			}
			set	
			{	
				m_explain = value ;	
			}
		}
			
		

		/// <summary>
		/// 生产目的
		/// 物料清单头DTO.Misc.生产目的
		/// </summary>
		private System.Int32 m_alternateType ;
		[DataMember(IsRequired=false)]
		public System.Int32 AlternateType
		{
			get	
			{	
				return m_alternateType ;
			}
			set	
			{	
				m_alternateType = value ;	
			}
		}
			
		#endregion	

		#region Multi_Fields
																						
		#endregion 
	} 	
}
